package nc.itf.hdysc.web;

import java.util.List;

import nc.vo.pub.BusinessException;
import nc.vo.pub.SuperVO;

public interface IWebData {
	public <T extends SuperVO> List<T> qryBySql(String sql, Class<T> c)
	throws BusinessException ;
	
	public <T extends SuperVO> List<T> qryByCondition(String condition, Class<T> c)throws BusinessException ;
	
	public <T extends SuperVO> T qryByPk(String pk, Class<T> c)throws BusinessException ;
	
	public <T extends SuperVO> void delete(T t) throws BusinessException ;
	
	public <T extends SuperVO> void save(T t) throws BusinessException ;
	
	public <T extends SuperVO> void update(T t) throws BusinessException ;
	
	public void update(String sql) throws BusinessException ;
	
	public <T extends SuperVO> void insert(T t) throws BusinessException ;
	
	public <T extends SuperVO> void insertOrUpdate(T t) throws BusinessException ;
}
